package com.bjsxt.livegoods.search.client.service.impl;

import com.bjsxt.livegoods.search.client.service.SearchService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class SearchServiceImpl implements SearchService {
    @Override
    public Map<String, Object> searchProducts(String city, String content, int page, int rows) {
        Map<String,Object> result=new HashMap<>();
        List<Map<String,Object>> data=new ArrayList<>();
        Map<String,Object> map=new HashMap<>();
        map.put("id","62986791c85be80b9ac5868c");
        map.put("title","北京公寓");
        map.put("rentType","整租");
        map.put("houseType","12/3|2室2厅1厨1卫-90.97m^2");
        map.put("price","8000");
        map.put("img","http://192.168.222.128:8888/group1/M00/00/00/wKjegGKUyoiAEkhqAACipnT_TbQ492.jpg");
        data.add(map);
        result.put("hasMore",false);
        result.put("data",data);
        return result;
    }
}
